package cn.ad.server.web.spring.model.jesgoo;

import cn.ad.server.domain.enumration.AdFormat;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zooy on 17-1-24.
 */
public enum JesgooAdFormat {

    BANNER(AdFormat.BANNER, 1),
    OPEN_SCREEN(AdFormat.OPEN_SCREEN,4),
    TABLE_SCREEN(AdFormat.TABLE_SCREEN,5),
    AD_NATIVE(AdFormat.AD_NATIVE, 9);

    private AdFormat adFormat;
    private int value;

    public final static Map<AdFormat, Integer> FORMAT_MAP = new HashMap<>();

    static {
        for (JesgooAdFormat jesgooAdFormat : values()) {
            FORMAT_MAP.put(jesgooAdFormat.adFormat, jesgooAdFormat.value);
        }
    }


    JesgooAdFormat(AdFormat adFormat, int value) {
        this.value = value;
        this.adFormat = adFormat;
    }

}
